package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-08
 */
public class SjApplyUpdateRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("fileId")
    private Integer fileId;
    @TableField("applyTime")
    private Date applyTime;
    @TableField("applicant")
    private String applicant;
    @TableField("updateReason")
    private String initialContent;
    @TableField("updateType")
    private String updateType;
    @TableField("approvalResult")
    private String approvalResult;
    @TableField("versionCode")
    private String versionCode;
    @TableField("fileCode")
    private String fileCode;
    @TableField("beforeContent")
    private String beforeContent;
    @TableField("afterContent")
    private String afterContent;
    @TableField("updateTime")
    private Date updateTime;
    @TableField(exist = false)
    private String  applicantName;
     @TableField("isTrain")
     private String  isTrain;

    public String getIsTrain() {
        return isTrain;
    }

    public void setIsTrain(String isTrain) {
        this.isTrain = isTrain;
    }

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApplyTime() {
        return applyTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public String getInitialContent() {
        return initialContent;
    }

    public void setInitialContent(String initialContent) {
        this.initialContent = initialContent;
    }

    public String getUpdateType() {
        return updateType;
    }

    public void setUpdateType(String updateType) {
        this.updateType = updateType;
    }

    public String getApprovalResult() {
        return approvalResult;
    }

    public void setApprovalResult(String approvalResult) {
        this.approvalResult = approvalResult;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public String getFileCode() {
        return fileCode;
    }

    public void setFileCode(String fileCode) {
        this.fileCode = fileCode;
    }

    public String getBeforeContent() {
        return beforeContent;
    }

    public void setBeforeContent(String beforeContent) {
        this.beforeContent = beforeContent;
    }

    public String getAfterContent() {
        return afterContent;
    }

    public void setAfterContent(String afterContent) {
        this.afterContent = afterContent;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getUpdateTime() {
        return updateTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SjApplyUpdateRecord{" +
                "id=" + id +
                ", fileId=" + fileId +
                ", applyTime=" + applyTime +
                ", applicant='" + applicant + '\'' +
                ", initialContent='" + initialContent + '\'' +
                ", updateType='" + updateType + '\'' +
                ", approvalResult='" + approvalResult + '\'' +
                ", versionCode='" + versionCode + '\'' +
                ", fileCode='" + fileCode + '\'' +
                ", beforeContent='" + beforeContent + '\'' +
                ", afterContent='" + afterContent + '\'' +
                ", updateTime=" + updateTime +
                ", applicantName='" + applicantName + '\'' +
                ", isTrain='" + isTrain + '\'' +
                '}';
    }
}
